﻿using Microsoft.AspNetCore.Identity;

namespace TravelServer.Models
{
    public class AppUser:IdentityUser
    {
        public string? Address { get; set; }

        //订单
        public ICollection<Order> Orders { get; set; }

        //购物车 导航属性,它与购物车是1对1关系，只需要在一端配置即可，关系在购物车脚本里配置
        public ShoppingCart ShoppingCart { get; set; }

        public virtual ICollection<IdentityUserRole<string>>? UserRoles { get; set; }
        public virtual ICollection<IdentityUserClaim<string>>? Claims { get; set; }
        public virtual ICollection<IdentityUserLogin<string>>? Logins { get; set; }

        //public virtual ICollection<IdentityUserToken<string>>? Tokens { get; set; }

    }
}
